<!--* 网站后台订单查看视图 * author:莫顺渠 -->
<form id="pagerForm" action="__URL__/index" method="post">
	<input type="hidden" name="pageNum" value="{$currentPage|default='1'}" />
	<input type="hidden" name="numPerPage" value="{$numPerPage}" /><!--每页显示多少条-->
	<input type="hidden" name="_order" value="{$Think.request._order}"/>
	<input type="hidden" name="_sort" value="{$Think.request._sort}"/>
</form>
<div class="pageHeader">
	<form rel="pagerForm" onsubmit="return navTabSearch(this);" method="post">
	<input type="hidden" name="numPerPage" value="{$numPerPage}" /><!--每页显示多少条-->
	<div class="searchBar">
		<table class="searchContent">
			<tr>
				<td>
					<b>搜索</b> &nbsp; 关键字：<input type="text" name="keyword" value="{$Think.post.keyword}" /> [姓名]
						&nbsp;&nbsp;班级：<input size="10" type="text" name="classid" value="{$Think.post.classid}"/>
				</td>
				<td>
					<div class="buttonActive"><div class="buttonContent"><button type="submit">检索</button></div></div>
				</td>
			</tr>
		</table>
	</div>
	</form>
</div>
<div class="pageContent">
	<div class="panelBar">
		<ul class="toolBar">
			<li><a class="add" href="__URL__/add" target="dialog" width="550" height="380" rel="user_msg" title="添加链接信息"><span>添加</span></a></li>
			<li><a class="delete" href="__URL__/del/order_id/{$Think.config.TMPL_L_DELIM}item_id{$Think.config.TMPL_R_DELIM}/navTabId/listorder" target="ajaxTodo" title="确定要删除吗?"><span>删除</span></a></li>
			<li><a class="edit" href="__URL__/edit/order_id/{$Think.config.TMPL_L_DELIM}item_id{$Think.config.TMPL_R_DELIM}"  width="550" height="380" target="dialog"><span>修改</span></a></li>
			<li class="line">line</li>
			<li><a class="icon"  href="javascript:navTabPageBreak()"><span>刷新</span></a></li>
			<!--<li><a class="icon" href="demo/common/dwz-team.xls" target="dwzExport" targetType="navTab" title="实要导出这些记录吗?"><span>导出EXCEL</span></a></li>-->
		</ul>
	</div>
	<table class="table" width="100%" layoutH="112">
		<thead>
			<tr>
				<th width="40" orderField="order_id" <if condition="$Think.request._order eq 'order_id'">class="{$Think.request._sort}"</if>>订单ID</th>
				
				<th width="40" orderField="order_no" <if condition="$Think.request._order eq 'order_no'">class="{$Think.request._sort}"</if>>订单号</th>
				
				<th width="40" orderField="user_name" <if condition="$Think.request._order eq 'user_name'">class="{$Think.request._sort}"</if>>会员名</th>
				
				<th width="40" orderField="order_time" min="6" <if condition="$Think.request._order eq 'order_time'">class="{$Think.request._sort}"</if>>订单生成时间</th>
				
				<th width="40" orderField="order_money" <if condition="$Think.request._order eq 'order_money'">class="{$Think.request._sort}"</if>>订单金额</th>
				
				<th width="40" orderField="express_name" <if condition="$Think.request._order eq 'express_name'">class="{$Think.request._sort}"</if>>配送方式</th>
				
				<th width="40" orderField="express_money" <if condition="$Think.request._order eq 'express_money'">class="{$Think.request._sort}"</if>>配送运费</th>
				
				<th width="40" orderField="order_total_money" <if condition="$Think.request._order eq 'order_total_money'">class="{$Think.request._sort}"</if>>总金额(含快递)</th>
				
				<th width="40" orderField="order_payment_content" <if condition="$Think.request._order eq 'order_payment_content'">class="{$Think.request._sort}"</if>>付款方式</th>
				
				<th width="100" orderField="address_content" <if condition="$Think.request._order eq 'address_content'">class="{$Think.request._sort}"</if>>发货地址</th>
				
				<th width="40" orderField="address_name" <if condition="$Think.request._order eq 'address_name'">class="{$Think.request._sort}"</if>>收货人</th>
				
				<th width="40" orderField="order_state" <if condition="$Think.request._order eq 'order_state'">class="{$Think.request._sort}"</if>>订单状态</th>
				
			</tr>
		</thead>
		<tbody>
			<volist name="list" id="vo">
				<tr target="item_id" rel="{$vo.order_id}">
					<td>{$vo.order_id}</td>
					<td>{$vo.order_no}</td>
					<td>{$vo.user_name}</td>
					<td>{$vo.order_time|date="Y-m-d H:i:s",###}</td>
					<td>{$vo.order_money}</td>
					
					<td>{$vo.express_name}</td>
					<if condition="$vo['order_money'] gt 200">
					       <td>免运费</td>
					<else/>
					     <td>{$vo.express_money}</td>
					</if>
					<!-- <if condition="$vo.express_money lt 200 "><td>免运费</td><else /><td>15</td></if> -->
					<td>{$vo.order_total_money}</td>
					<td>{$vo.order_payment_content}</td>
					<td>{$vo.address_content}</td>
					<td>{$vo.address_name}</td>
					<td>{$vo.order_state}</td>
				</tr>
			</volist>
		</tbody>
	</table>
	<div class="panelBar">
		<div class="pages">
			<span>显示</span>
			<select class="combox" name="numPerPage" onchange="navTabPageBreak({$Think.config.TMPL_L_DELIM}numPerPage:this.value{$Think.config.TMPL_R_DELIM})">
				<option value="10" <if condition="$numPerPage eq 10">selected</if>>10</option>
				<option value="15" <if condition="$numPerPage eq 15">selected</if>>15</option>
				<option value="20" <if condition="$numPerPage eq 20">selected</if>>20</option>
				<option value="25" <if condition="$numPerPage eq 25">selected</if>>25</option>
				<option value="30" <if condition="$numPerPage eq 30">selected</if>>30</option>
			</select>
			<span>共{$totalCount}条</span>
		</div>
		<div class="pagination" targetType="navTab" totalCount="{$totalCount}" numPerPage="{$numPerPage}" pageNumShown="10" currentPage="{$currentPage}"></div>
	</div>
</div>

